'''
加载text文件
'''
from langchain_community.document_loaders import TextLoader


# 加载文本
def load_txt_data(file_path):
    loader = TextLoader(file_path, encoding="utf-8")
    doc_txt = loader.load()
    return doc_txt


def load_data_from_txt():
    doc_txt = load_txt_data("../../load_file/simple_template.txt")
    print(doc_txt)
